import request from '@/utils/request'
const api = {
	addClue: 'api/clue/add',
	getPageList: 'api/clue/getPageList',
	editClue: 'api/clue/edit',
	deleteClue: 'api/clue/delete',
	addRecord: 'api/clue/addRecord',
}
// 添加线索
export function addClue(data) {
	return request.post(api.addClue, data)
}
// 列表
export function getPageList(data) {
	return request.get(api.getPageList, data)
}
// 线索修改
export function editClue(data) {
	return request.post(api.editClue, data)
}
// 删除
export function deleteClue(data) {
	return request.post(api.deleteClue, data)
}
// 添加跟进记录
export function addRecord(data) {
	return request.post(api.addRecord, data)
}